import React from 'react'

export default function(props){
    return (
        <>
            <p className="userinfo">
                欢迎你：{props.currentUser.realName}, &nbsp;
                <a onClick={props.onLogout}>退出</a>
            </p>
        </>
    )
}